package com.lyy.super_;


/**
 * @Author:  GZQ
 * @date:  2024/11/15 21:33
 * @description: super关键字的使用演示
 */

public class A extends Base{ // 父类 -> Base
    // 4个属性

//    public int n1 = 100;
    protected int n2 = 200;
    int n3 = 300;
    private int n4 = 400;

    public A() {}

    public A(String name) {}

    public A(String name,int age) {}

//    public void cal() {
//        System.out.println("A类的cal() 方法..");
//    }

    public void test100() {
    }

    protected void test200() {
    }

    void test300() {
    }

    private void test400() {
    }
}
